package cn.jhz.learn.blog.dao.account;

import cn.jhz.learn.blog.po.account.AccountPermission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AccountPermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AccountPermission record);

    int insertSelective(AccountPermission record);

    AccountPermission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AccountPermission record);

    int updateByPrimaryKey(AccountPermission record);

    /*自定义*/
    int batchInsertResource(@Param("list") List<AccountPermission> permissions);

    List<String> selectAllResources();

    List<String> selectResourceByPrimaryKeys(@Param("ids") List<Integer> permissionIds);
}